package org.blogwu.learn.designpattern.建造结合责任链.handle;

import org.blogwu.learn.designpattern.建造结合责任链.Member;

public class AuthHandler extends Handler {
    public void doHandler(Member member) {
        if (!"管理员".equals(member.getRoleName())) {
            System.out.println("您不是管理员，没有操作权限");
            return;
        }
        System.out.println("允许操作");
        if (next != null) {
            next.doHandler(member);
        }
    }
}
